angular.module('faApp')
    .service('shopService', ['ajaxService', function (ajaxService) {
        this.shopUserList = function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_USER_LIST"), cfg || {});
        };
        this.shopSucaiList = function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_SUCAI_LIST"), cfg || {});
        };
        this.getBehaviorHomeList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_HOME_LIST"), cfg || {});
        };
        this.getBehaviorProdList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_PROD_LIST"), cfg || {});
        };
        this.getBehaviorCustList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_CUST_LIST"), cfg || {});
        };
        this.getBehaviorFpList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_FP_LIST"), cfg || {});
        };
        this.getBehaviorFooterMenuList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_FOOTERMENU_LIST"), cfg || {});
        };
        this.getShopUserFeedBackList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_USER_FEED_BACK_LIST"), cfg || {});
        };
        this.getShopUserFeedBackADD =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_USER_FEED_BACK_ADD"), cfg || {});
        };
        this.getShopBackGroundList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BACK_GROUND_LIST"), cfg || {});
        };
        this.getShopBackGroundAdd =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BACK_GROUND_ADD"), cfg || {});
        }
        this.getShopSubjectList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_SUBJECT_LIST"), cfg || {});
        };
        this.addShopSubject =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_SUBJECT_ADD"), cfg || {});
        };
        this.updateShopSubject =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_SUBJECT_UPDATE"), cfg || {});
        };
        this.deleteShopSubject =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_SUBJECT_DELETE"), cfg || {});
        };
        this.getCustregisterList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_CUSTREGISTER_LIST"), cfg || {});
        };
        this.getCruxdataList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_BEHAVIOR_CRUXDATA_LIST"), cfg || {});
        };

        this.getShopInformationAdd =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_ADD"), cfg || {});
        };
        this.getShopInformationEdit =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_EDIT"), cfg || {});
        };
        this.getShopInformationDelete =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_DELETE"), cfg || {});
        };
        this.getShopInformationDetail=function (id) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_DETAIL"), {id : id});
        };
        this.getShopInformationList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_LIST"), cfg || {});
        };
        this.upordownInformation =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_INFORMATION_UPORDOWN"), cfg || {});
        };
        this.jcsYxtActivityCount =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YXT_ACTIVITY_COUNT"), cfg || {});
        };
        this.jcsYxtActivityDrawCount =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YXT_ACTIVITY_DRAW"), cfg || {});
        };

        this.pcTotalDynamic =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("PC_TOTAL_DYNAMIC"), cfg || {});
        };
        this.pcTotalDynamicUpdate =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("PC_TOTAL_DYNAMIC_UPDATE"), cfg || {});
        };

        this.playOpenApplyList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("PLAYOPEN_APPLY_LIST"), cfg || {});
        };
        this.playOpenApplyEdit=function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("PLAYOPEN_APPLY_EDIT"), cfg || {});
        };
        this.getShopInfoList =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YYZC_ACTIVITY_SHOPLIST"), cfg || {});
        };
        this.addShopInfo =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YYZC_ACTIVITY_SHOPADD"), cfg || {});
        };
        this.deleteShopInfo =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YYZC_ACTIVITY_SHOPDELETE"), cfg || {});
        };
        this.updateShopInfo =function (cfg) {
            return ajaxService.post(ajaxService.getApiUri("SHOP_YYZC_ACTIVITY_SHOPUPDATE"), cfg || {});
        };



    }]);


